package com.qfedu.dao;

import com.qfedu.entity.Cart;
import com.qfedu.entity.Product;
import com.qfedu.utils.BaseDao;

import java.lang.reflect.InvocationTargetException;
import java.math.BigDecimal;
import java.sql.SQLException;
import java.util.List;

public interface CartDao {
    Cart getCartById(int uid ,int pid) throws SQLException, InvocationTargetException, IllegalAccessException;
    int addCart(int uid, int pid, int cnum, BigDecimal ccount) throws SQLException;
    int update(int cnum, BigDecimal ccount,int cid) throws SQLException;
    List<Cart> getCartListByUid(int uid) throws SQLException, InvocationTargetException, IllegalAccessException;
    int delete(int cid) throws SQLException;
    int deleteCart(int uid) throws SQLException;
}
